#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

int main(){
	char word[205],mins[205];
	int minLen=205;
	while(cin>>word){
		int len=strlen(word);
		if(word[len-1]=='.'){
			word[len-1]=0;
			len--;	
		}
		if(len<minLen){
			minLen=len;
			strcpy(mins,word);
		}
		
	}
	cout<<mins;
	return 0;
}
